<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var yue=prompt("请您输入生日月份");
			if(yue>12||yue<=0){alert("请输入月份应在1月份-12月份之间！！");}
			else {var ri=prompt("请您输入生日日期");
			if(ri>31||ri<=0){alert("输入日期应在1-31之间！！！");}
			
		     else if(yue==1&&ri>=20||yue==2&&ri<=18){
				alert("水瓶座");
			}else if(yue==2&&ri>=19||yue==3&&ri<=20){
				alert("双鱼座");
			}else if(yue==3&&ri>=21||yue==4&&ri<=19){
				alert("白羊座");
			}else if(yue==4&&ri>=20||yue==5&&ri<=20){
				alert("金牛座");
			}else if(yue==5&&ri>=21||yue==6&&ri<=21){
				alert("双子座");
			}else if(yue==6&&ri>=22||yue==7&&ri<=22){
				alert("巨蟹座");
			}else if(yue==7&&ri>=23||yue==8&&ri<=22){
				alert("狮子座");
			}else if(yue==8&&ri>=23||yue==9&&ri<=22){
				alert("处女座");
			}else if(yue==9&&ri>=23||yue==10&&ri<=23){
				alert("天秤座");
			}else if(yue==10&&ri>=24||yue==11&&ri<=22){
				alert("天蝎座");
			}else if(yue==11&&ri>=23||yue==12&&ri<=21){
				alert("射手座");
			}else if(yue==12&&ri>=22||yue==1&&ri<=19){
				alert("摩羯座");
			}else {alert("请输入符合要求的日期格式！！！");}}
		</script>
	</body>
</html>
